<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>
  <div id="app">
    <!-- 想要动态绑定标签的属性, 不可以直接用mustache语法, 而要用v-bind前缀 -->
    <img v-bind:src="imgUrl" alt="">
    <!-- 语法糖写法 -->
    <img :src="imgUrl" alt="">
    <!-- a标签也一样 -->
    <a v-bind:href="aHerf">百度一下</a>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        imgUrl: "https://cn.vuejs.org/images/logo.png",
        aHerf: "https://www.baidu.com"
      }
    })
  </script>
</body>

</html>